package com.feilong.modules.model.order.vo;

import com.alibaba.fastjson.annotation.JSONField;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import javax.validation.constraints.NotNull;
import java.io.Serializable;
import java.math.BigDecimal;

@Data
@AllArgsConstructor
@NoArgsConstructor
public class GoodsListVO implements Serializable {

    /**
     * 商品id
     */
    @JSONField(name = "goods_id")
    @NotNull(message = "商品id不能为空")
    private Integer goodsId;

    /**
     * 商品名称
     */
    @JSONField(name = "goods_name")
    @NotNull(message = "商品名称不能为空")
    private String goodsName;

    /**
     * 商品总价格
     */
    @JSONField(name = "goods_price")
    @NotNull(message = "商品总价格不能为空")
    private BigDecimal goodsPrice;

    /**
     * 商品单价
     */
    private BigDecimal price;

    /**
     * 商品运费
     */
    @NotNull(message = "商品运费不能为空")
    private BigDecimal postage;

    /**
     * 商品图标
     */
    @JSONField(name = "goods_logo")
    private String goodsLogo;

    /**
     * 商品类型
     */
    @NotNull(message = "商品类型不能为空")
    private String selectType;

    /**
     * 商品数量
     */
    @NotNull(message = "商品数量不能为空")
    private Integer chooseNum;
}
